@use 'sass:math';
@use '@/styles/variables' as *;
@use '@/styles/mixins' as *;

// Reset
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

// Global styles
html, body {
  height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica,
    Segoe UI, Arial, Roboto, 'PingFang SC', 'miui', 'Hiragino Sans GB', 'Microsoft Yahei',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: $background-color;
}

// Safe area for mobile devices
.safe-area-bottom {
  padding-bottom: constant(safe-area-inset-bottom);
  padding-bottom: env(safe-area-inset-bottom);
}

// Common styles
.page-container {
  min-height: 100vh;
  padding-bottom: 50px; // Height of tabbar
}

.content-padding {
  padding: $spacing-lg;
}

// Text styles
h1, h2, h3, h4, h5, h6 {
  font-weight: 500;
  color: $text-color;
}

p {
  color: $text-color-secondary;
  line-height: 1.5;
}

// Custom van-nav-bar styles
.van-nav-bar {
  background-color: #ffffff;
  
  .van-nav-bar__title {
    color: $text-color;
    font-weight: 500;
  }
  
  .van-icon {
    color: $text-color;
  }
}

// Custom van-tabbar styles
.van-tabbar {
  background-color: #ffffff;
  
  &::after {
    border-top-color: #f2f2f2;
  }
}
